package com.jl.smartcard.ui.views.cardlist;

import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;

import com.jl.card.parse.IAPDUComponent;

public class TreeLabelProvider extends LabelProvider {
	
	@Override
	public String getText(Object element) {
		if(element instanceof IAPDUComponent){
			return ((IAPDUComponent)element).getSummary();
		}
		return "-Error-";
	}
	
	@Override
	public Image getImage(Object element) {
		return null;
	}
}
